org.eclipse.vtp.desktop.projects.core.internals
Class VoiceToolsProject

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
      extended by org.eclipse.vtp.desktop.projects.core.internals.VoiceToolsProject
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, ObjectListener, IVoiceToolsProject, IVoiceToolsResource
Direct Known Subclasses:
MediaProject, VoiceToolsDesignProject

public abstract class VoiceToolsProject
extends VoiceResource
implements IVoiceToolsProject

This is a concrete implementation of IVoiceProject and provides the default behavior of that interface.

Version:
2.0
Author:
Trip Gilman

Field Summary
protected  org.eclipse.core.resources.IProject project
          The underlying eclipse project for this project resource.
 
Constructor Summary
VoiceToolsProject(org.eclipse.core.resources.IProject project)
          Creates a new VoiceProject for the given eclipse project resource.
 
Method Summary
 java.io.File archiveProject()
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.String getName()
           
protected  java.lang.String getObjectId()
          The object id is used by the event system to uniquely identify a project resource.
 IVoiceToolsResource getParent()
          Returns the parent of this resource.
 org.eclipse.core.resources.IProject getUnderlyingProject()
          Allows access to the underlying Eclipse project model
 
Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
addRefreshListener, deferEvents, finalize, getProject, processObjectEvent, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource
addRefreshListener, deferEvents, getProject, refresh, removeRefreshListener, resumeEvents
 

Field Detail

project

protected org.eclipse.core.resources.IProject project
The underlying eclipse project for this project resource.

Constructor Detail

VoiceToolsProject

public VoiceToolsProject(org.eclipse.core.resources.IProject project)
Creates a new VoiceProject for the given eclipse project resource.

Parameters:
project - The underlying eclipse project resource
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface IVoiceToolsResource
Returns:
The name of the resource

getParent

public IVoiceToolsResource getParent()
Description copied from interface: IVoiceToolsResource
Returns the parent of this resource. If this is a project resource this function returns this.

Specified by:
getParent in interface IVoiceToolsResource
Returns:
The parent of this resource resource

getUnderlyingProject

public org.eclipse.core.resources.IProject getUnderlyingProject()
Description copied from interface: IVoiceToolsProject
Allows access to the underlying Eclipse project model

Specified by:
getUnderlyingProject in interface IVoiceToolsProject
Returns:
The eclipse project object for this project

getObjectId

protected java.lang.String getObjectId()
Description copied from class: VoiceResource
The object id is used by the event system to uniquely identify a project resource. In this fashion, multiple references to the resource can be created and still be notified of events.

Specified by:
getObjectId in class VoiceResource
Returns:
A unique identifier for this resource

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Overrides:
getAdapter in class VoiceResource

archiveProject

public java.io.File archiveProject()